Integrand size = 33, antiderivative size = 489 \[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=-\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )^2}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \log \left (\frac {2}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \operatorname {PolyLog}\left (2,-\frac {1+\sqrt {1-\frac {e^2 x^2}{d^2}}}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}} \]
[Out]
Time = 0.52 (sec) , antiderivative size = 489, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2387, 272, 44, 65, 214, 2392, 43, 6131, 6055, 2449, 2352} \[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )^2}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {arctanh}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \log \left (\frac {2}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \operatorname {PolyLog}\left (2,-\frac {\sqrt {1-\frac {e^2 x^2}{d^2}}+1}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}} \]
[In]
[Out]
Rule 43
Rule 44
Rule 65
Rule 214
Rule 272
Rule 2352
Rule 2387
Rule 2392
Rule 2449
Rule 6055
Rule 6131
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {1-\frac {e^2 x^2}{d^2}} \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {1-\frac {e^2 x^2}{d^2}}} \, dx}{\sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (b n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \int \left (-\frac {\sqrt {1-\frac {e^2 x^2}{d^2}}}{2 x^3}-\frac {e^2 \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{2 d^2 x}\right ) \, dx}{\sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \int \frac {\sqrt {1-\frac {e^2 x^2}{d^2}}}{x^3} \, dx}{2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \int \frac {\tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{x} \, dx}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {\sqrt {1-\frac {e^2 x}{d^2}}}{x^2} \, dx,x,x^2\right )}{4 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\sqrt {1-\frac {e^2 x}{d^2}}\right )}{x} \, dx,x,x^2\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {e^2 x}{d^2}}} \, dx,x,x^2\right )}{8 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {x \tanh ^{-1}(x)}{-1+x^2} \, dx,x,\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )^2}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {1}{\frac {d^2}{e^2}-\frac {d^2 x^2}{e^2}} \, dx,x,\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{4 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {\tanh ^{-1}(x)}{1-x} \, dx,x,\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )^2}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \log \left (\frac {2}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1-x}\right )}{1-x^2} \, dx,x,\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )^2}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \log \left (\frac {2}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ & = -\frac {b n \left (d^2-e^2 x^2\right )}{4 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}+\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right )^2}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (d^2-e^2 x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 x^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {e^2 \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \tanh ^{-1}\left (\sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \log \left (\frac {2}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{2 d^2 \sqrt {d-e x} \sqrt {d+e x}}-\frac {b e^2 n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {Li}_2\left (1-\frac {2}{1-\sqrt {1-\frac {e^2 x^2}{d^2}}}\right )}{4 d^2 \sqrt {d-e x} \sqrt {d+e x}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.64 (sec) , antiderivative size = 255, normalized size of antiderivative = 0.52 \[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=\frac {\frac {b n \left (-d^2+e^2 x^2\right ) \left (2 d^3 \, _3F_2\left (\frac {3}{2},\frac {3}{2},\frac {3}{2};\frac {5}{2},\frac {5}{2};\frac {d^2}{e^2 x^2}\right )+9 e^2 x^2 \left (d \sqrt {1-\frac {d^2}{e^2 x^2}}-e x \arcsin \left (\frac {d}{e x}\right )\right ) (1+2 \log (x))\right )}{e^2 \sqrt {1-\frac {d^2}{e^2 x^2}} x^4 \sqrt {d-e x} \sqrt {d+e x}}-\frac {18 d \sqrt {d-e x} \sqrt {d+e x} \left (a-b n \log (x)+b \log \left (c x^n\right )\right )}{x^2}+18 e^2 \log (x) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )-18 e^2 \left (a-b n \log (x)+b \log \left (c x^n\right )\right ) \log \left (d+\sqrt {d-e x} \sqrt {d+e x}\right )}{36 d^3} \]
[In]
[Out]
\[\int \frac {a +b \ln \left (c \,x^{n}\right )}{x^{3} \sqrt {-e x +d}\, \sqrt {e x +d}}d x\]
[In]
[Out]
\[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{\sqrt {e x + d} \sqrt {-e x + d} x^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{\sqrt {e x + d} \sqrt {-e x + d} x^{3}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{\sqrt {e x + d} \sqrt {-e x + d} x^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \log \left (c x^n\right )}{x^3 \sqrt {d-e x} \sqrt {d+e x}} \, dx=\int \frac {a+b\,\ln \left (c\,x^n\right )}{x^3\,\sqrt {d+e\,x}\,\sqrt {d-e\,x}} \,d x \]
[In]
[Out]